﻿using Deferred.Library;
using Deferred.Library.Input;
using Deferred.Library.Scene;
using Deferred.Library.Scene.Utilities;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace Deferred.Game
{
    public class Game : DeferredRenderGame
    {
        protected override void Initialize()
        {
            IKeyboardHandler handler = (IKeyboardHandler)Services.GetService(typeof(IKeyboardHandler));
            handler.AddBinding(Keys.Escape, Exit);

            Scene = Content.Load<SceneGraph>(@"Scenes\MyFirstScene");

            base.Initialize();
        }
    }
}
